package com.example.model.room_type;

import com.example.model.BaseEntity;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.PositiveOrZero;

public class RoomType extends BaseEntity {

    private Long roomTypeId;
    @NotEmpty
    private String roomTypeName;
    @PositiveOrZero
    private Integer quantity;
    private PriceRule priceRule;

    private  String photo;

    public RoomType() {
    }

    public RoomType(Long roomTypeId, String roomTypeName, Integer quantity, PriceRule priceRule, String photo) {
        this.roomTypeId = roomTypeId;
        this.roomTypeName = roomTypeName;
        this.quantity = quantity;
        this.priceRule = priceRule;
        this.photo = photo;
    }

    public Long getRoomTypeId() {
        return roomTypeId;
    }

    public void setRoomTypeId(Long roomTypeId) {
        this.roomTypeId = roomTypeId;
    }

    public String getRoomTypeName() {
        return roomTypeName;
    }

    public void setRoomTypeName(String roomTypeName) {
        this.roomTypeName = roomTypeName;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public PriceRule getPriceRule() {
        return priceRule;
    }

    public void setPriceRule(PriceRule priceRule) {
        this.priceRule = priceRule;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    @Override
    public String toString() {
        return "RoomType{" +
                "roomTypeId=" + roomTypeId +
                ", roomTypeName='" + roomTypeName + '\'' +
                ", quantity=" + quantity +
                ", priceRule=" + priceRule +
                ", photo='" + photo + '\'' +
                '}';
    }
}
